﻿
using System;
using System.Collections.Generic;
using Gum.FizzBuzz;
using Gum.FizzBuzz.Writers;

namespace FizzBuzzApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            var factory = new FizzBuzzJobFactory();
            var runner = new FizzBuzzJobRunner();
            var writer = new ConsoleStringWriter();

            var job = factory.Create(1, 200, GetMappings());

            runner.Run(job, writer);
            Console.ReadKey();
        }

        private static IEnumerable<KeyValuePair<int, string>> GetMappings()
        {
           var mapping1 =  new KeyValuePair<int, string>(3, "Three");
           var mapping2 =  new KeyValuePair<int, string>(5, "Five");
           var mapping3 =  new KeyValuePair<int, string>(7, "Seven");
           return new[] {mapping1, mapping2, mapping3}; 
        }
    }
}
